/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.bo;

import java.util.List;
import thienphuc.patient.dto.PhongBan;

/**
 *
 * @author QuocDat
 */
public interface PhongBanBO {
    /**
     * Get all PhongBan
     * @return 
     */
    List<PhongBan> getAll() throws Exception;
    
    /**
     * Get PhongBan by PhongBanId
     * @param phongBanId
     * @return 
     */
    PhongBan getById(int phongBanId) throws Exception;
    
    /**
     * Get PhongBan by TenPhongBan
     * @param tenPhongBan
     * @return
     * @throws Exception 
     */
    List<PhongBan> getByTenPhongBan(String tenPhongBan) throws Exception;
    
    /**
     * Get PhongBan by TrangThai
     * @param trangThai
     * @return
     * @throws Exception 
     */
    List<PhongBan> getByTrangThai(boolean trangThai) throws Exception;
    
    /**
     * Insert PhongBan
     * @param phongBan
     * @return
     * @throws Exception 
     */
    boolean insertPhongBan(PhongBan phongBan) throws Exception;
    
    /**
     * Update PhongBan
     * @param phongBan
     * @return
     * @throws Exception 
     */
    boolean updatePhongBan(PhongBan phongBan) throws Exception;
}
